			<div>
			<p>Chuyển đến trang </p>
			<?php 
			for ($page=1;$page<=$maxpage;$page++)
			{
				echo '<button onclick="bomcuatoi('.$page.')">'.$page.'</button>';
			}
			?>
			</div>
<div>
				<table width="100%" border="1" cellpadding="4" cellspacing="4" >
			<tr style="color: blue">
						<td style="border: thin solid white" bgcolor="#DADADA"><strong>Mã bom</strong>
						</td>
						<td style="border: thin solid white" width="100px" bgcolor="#DADADA"><strong>Màu dây</strong>
						</td>
						<td style="border: thin solid white" bgcolor="#DADADA"><strong>Tình trạng</strong>
						</td>
						<td style="border: thin solid white" bgcolor="#DADADA"><strong>Ngày đặt</strong>
						</td>
						<td style="border: thin solid white" bgcolor="#DADADA"><strong>Số tiền</strong>
						</td>
						<td style="border: thin solid white" bgcolor="#DADADA"><strong>Phá bởi</strong>
						</td>
					 	<td style="border: thin solid white" bgcolor="#DADADA"><strong>Tiền nhận được</strong>
						</td> 
						<td style="border: thin solid white" bgcolor="#DADADA"><strong>Hủy</strong>
						</td>
					</tr> 
					
					
					
					
					
					
					
					<?php foreach($mybomb as $b):?>
					<tr  class="bom" id="<?php echo $b['id'];?>" 
					<?php 
						
							echo 'bgcolor="#FCF0F0"';
						
					
					?>
					 height="65px">
					 	<td style="border: thin solid white;text-align:center;" ><br/><?php echo $b['id'];?></td>  
						<td style="border: thin solid white" >
						<?php 
					//	echo '<img src="../images/bomb-red.jpg />'.$b['color'].'vvvv';
						if ($b['color']==-1)
							echo '<img alt="chơi đặt bom trúng thưởng" width="auto" src="../images/bomb-red.jpg" />';
						else
							echo '<img alt="chơi đặt bom trúng thưởng" src="../images/bomb-blue.jpg" />';
						?>
						</td>
						<td style="border: thin solid white;text-align:center;" >
						<?php 
						if($b['status']==0)
						{echo 'Đang chờ';}
						else
						{
							if($b['status']==2)
							{echo 'cancel';}
							else
							{
								if($b['status']==-1){echo 'Bom nổ - Bạn thắng';}
								if ($b['status']==1){echo 'Bom gỡ - Bạn thua';}
								
							}
						}?>
						</td>
						<td style="border: thin solid white;text-align:center;" ><?php echo $b['date_set'];?></td> 
						<td style="border: thin solid white;text-align:center;"><?php echo $b['money'];?></td>
						<td style="border: thin solid white;text-align:center;" ><?php echo $b['user_remove_name'];?></td>
						<td style="border: thin solid white;text-align:center;" ><?php if($b['status']!=-1){ echo '-  $' . $b['money'];}else{echo '+  $' . $b['money']*0.96;} ?></td>
						<td style="border: thin solid white;text-align:center;" ><?php if ($b['status']==0) echo '<button onclick=huybom('.$b['id'].')>Hủy</button>'; ?></td>
					</tr>
					<?php endforeach;?>
				</table>
			</div>
